// 1.数组的合并
const color = ['red', 'green', 'blue'];
const num = ['1', '2', '3'];
const cononect = color.concat(num);
console.log(cononect); //['red', 'green', 'blue', '1', '2', '3']
const connect = [...color, ...num];
console.log(connect); //['red', 'green', 'blue', '1', '2', '3']

// 2.数组的克隆
const colors = ['red', 'green', 'blue'];
const clone = [...color];
console.log(clone); //['red', 'green', 'blue']

// 3.将伪数组转为真正的数组
const divs = document.querySelectorAll('div');
console.log(divs); //NodeList(3) [div, div, div] Object
console.log([...divs]); //[div, div, div] Array